<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>修改密码</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

</head>

<body>
	<%@ include file="/WEB-INF/jsp/common/header.jsp"%>

	<script>
		function save() {
			if (!$('#ssec-form').form('validate')) {
				return;
			}
			$.ajax({
				type : "post",
				url : "UserManage/ChangePWD",
				//                dataType: "xml",
				data : {
					czr : PUser[0].userid,
					loginname : PUser[0].loginname,
					pwd1 : $('#t1').val(),
					pwd2 : $('#t2').val(),
					pwd3 : $('#t3').val()
				},
				async : false,
				success : function(data) {
					$.messager.alert('消息', data);
				},
				error : function(XMLHttpRequest, textStatus, errorThrown) {
					$.messager.alert('消息', errorThrown);
				}
			});

		}
	</script>
	<div>
		<form id="ssec-form" class="ssec-form">
			<table align="center">
				<tr>
					<td>
						<div class="ssec-label">请输入旧密码：</div>
					</td>
					<td>
						<div class="ssec-text normal">
							<input id="t1" type="password" class="easyui-validatebox textbox"
								data-options="required:true" />
						</div>
					</td>
				</tr>
				<tr>
					<td>
						<div class="ssec-label">请输入新密码：</div>
					</td>
					<td>
						<div class="ssec-text normal">
							<input id="t2" type="password" class="easyui-validatebox textbox"
								data-options="required:true" />
						</div>
					</td>
				</tr>
				<tr>
					<td>
						<div class="ssec-label">新密码确认：</div>
					</td>
					<td>
						<div class="ssec-text normal">
							<input id="t3" type="password" class="easyui-validatebox textbox"
								data-options="required:true" />
						</div>
					</td>
				</tr>
			</table>
		</form>
	</div>
	<div style="text-align:center;">
		<a class="easyui-linkbutton" onclick="save();" iconcls="icon-save">保存</a>
	</div>
</body>
</html>
